#include <iostream>

int main() {
    // 定义并初始化一个 3 行 4 列的二维数组
    int matrix[3][4] = {
        {1, 2, 3, 4},
        {5, 6, 7, 8},
        {9, 10, 11, 12}
    };

    // 访问并输出二维数组元素
    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 4; ++j) {
            std::cout << "Element at row " << i << ", column " << j << ": " << matrix[i][j] << std::endl;
        }
    }

    return 0;
}    